import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import permisson from '@/router/permission' // 只是为了使用，所以无需导出和使用
import { Tab, Tabs, Icon, NavBar, DatetimePicker, Dialog, Button, Form, Field, Toast, badge, Tabbar, TabbarItem, Divider, Cell, CellGroup, List, PullRefresh, ActionSheet, Popup, Col, Row, Search, Tag, Image } from 'vant'
import diretvieObj from './utils/directive'
import 'amfe-flexible' // 清弹起

Vue.use(DatetimePicker)
Vue.use(Image)
Vue.use(CellGroup)
Vue.use(Tag)
Vue.use(diretvieObj)

Vue.use(Search)

Vue.use(Col)
Vue.use(Row)
Vue.use(Popup)
Vue.use(badge)
Vue.use(Divider)

Vue.use(ActionSheet)

Vue.use(PullRefresh)
Vue.use(List)

Vue.use(Cell)
Vue.use(CellGroup)

Vue.use(Tab)
Vue.use(Tabs)
Vue.use(Tabbar)
Vue.use(TabbarItem)
Vue.use(Icon)
Vue.use(Button) // 全局注册 Button组件
Vue.use(NavBar)
Vue.use(Form) // 注册表单
Vue.use(Field)
Vue.use(Toast)
Vue.use(Dialog)
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
